package com.pswv2.bub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pswv2.core.PO;
/**
 * 账单详情
 * @author linjiang
 *
 */
@Entity
@Table
public class AccountDetails extends PO {
	
	public static final Integer money =1;
	public static final Integer pionts =2;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer accountDetailsId; 			
	private Integer userId;				//用户
	private String 	matter;				//交易事件
	private Integer proceedsPaid;		//0收入1支出
	private double 	amount;     		 //交易金额
	private double 	points;     		 //交易积分
	private double 	shepoints;     		 //剩余积分
	private Long 	time;				//充值时间
	private int 	type;				//1是金钱，2是点数
	
	@Override
	public Serializable getId() {
		return accountDetailsId;
	}

	
	public double getPoints() {
		return points;
	}


	public void setPoints(double points) {
		this.points = points;
	}

	
	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}

	
	public double getShepoints() {
		return shepoints;
	}


	public void setShepoints(double shepoints) {
		this.shepoints = shepoints;
	}


	public Integer getAccountDetailsId() {
		return accountDetailsId;
	}

	
	public void setAccountDetailsId(Integer accountDetailsId) {
		this.accountDetailsId = accountDetailsId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getMatter() {
		return matter;
	}

	public void setMatter(String matter) {
		this.matter = matter;
	}

	public Integer getProceedsPaid() {
		return proceedsPaid;
	}

	public void setProceedsPaid(Integer proceedsPaid) {
		this.proceedsPaid = proceedsPaid;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}
	
}
